package cn.tedu.imop.common.service;

import cn.tedu.imop.api.domain.OperationLog;
import cn.tedu.imop.api.service.LogRemoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class AsyncLogService {

    @Autowired
    private LogRemoteService logRemoteService;

    @Async
    public void createOperationLog(OperationLog operationLog) {
        logRemoteService.createOperationLog(operationLog);
    }

}
